package com.hl.wuyeguanliIDEA.service.impl;

import com.hl.wuyeguanliIDEA.mapper.SystemPasswordMapper;
import com.hl.wuyeguanliIDEA.pojo.EventReminder;
import com.hl.wuyeguanliIDEA.pojo.SystemPassword;
import com.hl.wuyeguanliIDEA.service.SystemPasswordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SystemPasswordServiceimpl implements SystemPasswordService {

    @Autowired
    private SystemPasswordMapper systemPasswordMapper;
    @Override
    public List<SystemPassword> selectAll() {
        return systemPasswordMapper.selectAll();
    }

    @Override
    public SystemPassword getPasswordById(Integer id) {
        return systemPasswordMapper.getPasswordById(id);
    }

    @Override
    public boolean updatePassword(SystemPassword systemPassword) {
        int result = systemPasswordMapper.updatePassword(systemPassword);
        return result > 0;
    }
}